package org.apix.commands.command;

import org.apix.commands.BaseCommand;
import org.bukkit.command.Command;
import org.bukkit.entity.Player;
import org.martin.bukkit.npclib.NPCEntity;

public class Npc extends BaseCommand {

	@Override
	public boolean execute(Player p, Command command, String[] args) {
		
		if(!isEnabled()) {
			return false;
		}
		
		if(!this.defaultCommandChecks(p)) {
			return true;
		}
		if(args.length > 0) {
			NPCEntity npc =	this.plugin.getManager().spawnNPC(args[0], p.getLocation());			
		}
		
		
		return true;
	}
	
}
